package com.czy.daishusys.entity;

import com.chad.library.adapter.base.entity.AbstractExpandableItem;
import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.czy.daishusys.adapter.ExpandableStaffAdapter;

import java.io.Serializable;
import java.util.List;

/**
 * Created by King on 2016/9/12 0012.
 */
public class StoreBooks extends AbstractExpandableItem<StoreBooks.StoreBooksDetail> implements MultiItemEntity {
    @Override
    public int getItemType() {
        return ExpandableStaffAdapter.TYPE_LEVEL_0;
    }

    @Override
    public int getLevel() {
        return 0;
    }

    public StoreBooks(StoreBooks storeBooks) {
        this.note = storeBooks.note;
        this.groupName = storeBooks.groupName;
        this.groupCount = storeBooks.groupCount;
        this.createTime = storeBooks.createTime;
        this.roleId = storeBooks.roleId;
        this.storeName = storeBooks.storeName;
        this.sort = storeBooks.sort;
        this.storeId = storeBooks.storeId;
        this.storeEmployeesGroupId = storeBooks.storeEmployeesGroupId;
        this.employeeList = storeBooks.employeeList;
    }
    public StoreBooks( ) {

    }
    /**
     * note : 未设置
     * groupName : 财务
     * groupCount : 1
     * createTime : 1472440032254
     * roleId : 117
     * storeName : King
     * sort : 999
     * storeId : 39
     * list : [{"birthday":0,"note":"未设置","idCard":"未设置省份证号","userLogo":"http://o6w2souoh.bkt.clouddn.com/defaultUser.jpg","positionName":"未设置","employeesName":"金春","serviceStatus":"off","contact":"未设置联系电话","jobYear":0,"storeName":"King","workingStatus":"true","addr":"未设置详细地址","storeEmployeesGroupId":52,"imKey":"sto13588747917","joinTime":1472400000000,"roleId":117,"nickName":"13588747917","sex":1,"sort":999,"storeId":39,"storeEmployeesId":53,"labels":"无标签","realName":"未设置","groupName":"财务","groupCount":1,"createTime":1472440032254,"phone":"13588747917"}]
     * storeEmployeesGroupId : 52
     */

    private String note;
    private String groupName;
    private int groupCount;
    private long createTime;
    private int roleId;
    private String storeName;
    private int sort;
    private int storeId;
    private int storeEmployeesGroupId;
    private List<StoreBooksDetail> employeeList;

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public int getGroupCount() {
        return groupCount;
    }

    public void setGroupCount(int groupCount) {
        this.groupCount = groupCount;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public int getStoreId() {
        return storeId;
    }

    public void setStoreId(int storeId) {
        this.storeId = storeId;
    }

    public int getStoreEmployeesGroupId() {
        return storeEmployeesGroupId;
    }

    public void setStoreEmployeesGroupId(int storeEmployeesGroupId) {
        this.storeEmployeesGroupId = storeEmployeesGroupId;
    }

    public List<StoreBooksDetail> getEmployeeList() {
        return employeeList;
    }

    public void setEmployeeList(List<StoreBooksDetail> employeeList) {
        this.employeeList = employeeList;
    }

    public class StoreBooksDetail implements MultiItemEntity, Serializable {

        @Override
        public int getItemType() {
            return ExpandableStaffAdapter.TYPE_LEVEL_1;
        }

        /**
         * birthday : 0
         * note : 未设置
         * idCard : 未设置省份证号
         * userLogo : http://o6w2souoh.bkt.clouddn.com/defaultUser.jpg
         * positionName : 未设置
         * employeesName : 金春
         * serviceStatus : off
         * contact : 未设置联系电话
         * jobYear : 0.0
         * storeName : King
         * workingStatus : true
         * addr : 未设置详细地址
         * storeEmployeesGroupId : 52
         * imKey : sto13588747917
         * joinTime : 1472400000000
         * roleId : 117
         * nickName : 13588747917
         * sex : 1
         * sort : 999
         * storeId : 39
         * storeEmployeesId : 53
         * labels : 无标签
         * realName : 未设置
         * groupName : 财务
         * groupCount : 1
         * createTime : 1472440032254
         * phone : 13588747917
         */

        private long birthday;
        private String note;
        private String idCard;
        private String userLogo;
        private String positionName;
        private String employeesName;
        private String serviceStatus;
        private String contact;
        private float jobYear;
        private String storeName;
        private String workingStatus;
        private String addr;
        private int storeEmployeesGroupId;
        private String imKey;
        private long joinTime;
        private int roleId;
        private String nickName;
        private int sex;
        private int sort;
        private int storeId;
        private int storeEmployeesId;
        private String labels;
        private String realName;
        private String groupName;
        private int groupCount;
        private long createTime;
        private String phone;

        public long getBirthday() {
            return birthday;
        }

        public void setBirthday(long birthday) {
            this.birthday = birthday;
        }

        public String getNote() {
            return note;
        }

        public void setNote(String note) {
            this.note = note;
        }

        public String getIdCard() {
            return idCard;
        }

        public void setIdCard(String idCard) {
            this.idCard = idCard;
        }

        public String getUserLogo() {
            return userLogo;
        }

        public void setUserLogo(String userLogo) {
            this.userLogo = userLogo;
        }

        public String getPositionName() {
            return positionName;
        }

        public void setPositionName(String positionName) {
            this.positionName = positionName;
        }

        public String getEmployeesName() {
            return employeesName;
        }

        public void setEmployeesName(String employeesName) {
            this.employeesName = employeesName;
        }

        public String getServiceStatus() {
            return serviceStatus;
        }

        public void setServiceStatus(String serviceStatus) {
            this.serviceStatus = serviceStatus;
        }

        public String getContact() {
            return contact;
        }

        public void setContact(String contact) {
            this.contact = contact;
        }

        public float getJobYear() {
            return jobYear;
        }

        public void setJobYear(float jobYear) {
            this.jobYear = jobYear;
        }

        public String getStoreName() {
            return storeName;
        }

        public void setStoreName(String storeName) {
            this.storeName = storeName;
        }

        public String getWorkingStatus() {
            return workingStatus;
        }

        public void setWorkingStatus(String workingStatus) {
            this.workingStatus = workingStatus;
        }

        public String getAddr() {
            return addr;
        }

        public void setAddr(String addr) {
            this.addr = addr;
        }

        public int getStoreEmployeesGroupId() {
            return storeEmployeesGroupId;
        }

        public void setStoreEmployeesGroupId(int storeEmployeesGroupId) {
            this.storeEmployeesGroupId = storeEmployeesGroupId;
        }

        public String getImKey() {
            return imKey;
        }

        public void setImKey(String imKey) {
            this.imKey = imKey;
        }

        public long getJoinTime() {
            return joinTime;
        }

        public void setJoinTime(long joinTime) {
            this.joinTime = joinTime;
        }

        public int getRoleId() {
            return roleId;
        }

        public void setRoleId(int roleId) {
            this.roleId = roleId;
        }

        public String getNickName() {
            return nickName;
        }

        public void setNickName(String nickName) {
            this.nickName = nickName;
        }

        public int getSex() {
            return sex;
        }

        public void setSex(int sex) {
            this.sex = sex;
        }

        public int getSort() {
            return sort;
        }

        public void setSort(int sort) {
            this.sort = sort;
        }

        public int getStoreId() {
            return storeId;
        }

        public void setStoreId(int storeId) {
            this.storeId = storeId;
        }

        public int getStoreEmployeesId() {
            return storeEmployeesId;
        }

        public void setStoreEmployeesId(int storeEmployeesId) {
            this.storeEmployeesId = storeEmployeesId;
        }

        public String getLabels() {
            return labels;
        }

        public void setLabels(String labels) {
            this.labels = labels;
        }

        public String getRealName() {
            return realName;
        }

        public void setRealName(String realName) {
            this.realName = realName;
        }

        public String getGroupName() {
            return groupName;
        }

        public void setGroupName(String groupName) {
            this.groupName = groupName;
        }

        public int getGroupCount() {
            return groupCount;
        }

        public void setGroupCount(int groupCount) {
            this.groupCount = groupCount;
        }

        public long getCreateTime() {
            return createTime;
        }

        public void setCreateTime(long createTime) {
            this.createTime = createTime;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }
    }
}
